// 搜索相关的mock数据
import { mock, Random } from 'mockjs'

// 搜索内容
export const search = mock({
  'code': 1,
  'msg': '操作成功',
  'data': {
    'searchList': {
      'total': '@integer(10, 50)',
      'per_page': 10,
      'current_page': 1,
      'last_page': '@integer(1, 5)',
      'data|10': [{
        'id': '@id',
        'eid': '@string("lower", 10)',
        'title': '@ctitle(10, 30)',
        'image': '@image("200x150", "#4A7BF7", "CMS")',
        'images': '@image("200x150"),@image("200x150"),@image("200x150")',
        'images_list|3': ['@image("200x150", "#4A7BF7", "CMS")'],
        'channel_id': '@integer(1, 10)',
        'channel': {
          'id': '@integer(1, 10)',
          'name': '@cword(2, 4)',
          'image': '@image("100x100", "#4A7BF7", "CMS")',
          'diyname': '@word(5, 10)',
          'items': '@integer(50, 200)'
        },
        'user_id': '@integer(1, 100)',
        'user': {
          'id': '@integer(1, 100)',
          'nickname': '@cname',
          'avatar': '@image("100x100", "#4A7BF7", "Avatar")'
        },
        'likes': '@integer(0, 1000)',
        'dislikes': '@integer(0, 100)',
        'comments': '@integer(0, 500)',
        'views': '@integer(100, 10000)',
        'create_date': '@date("yyyy-MM-dd")',
        'createtime': '@integer(1600000000, 1630000000)',
        'description': '@cparagraph(1, 3)'
      }]
    },
    'keywords': '@word(2, 5)',
    'hotSearch|5': ['@cword(2, 5)']
  }
})